//
//  JOFriendGroup.m
//  qq好友
//
//  Created by song on 15/1/18.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "JOFriendGroup.h"
#import "JOFriend.h"
@implementation JOFriendGroup


-(instancetype)initWithDict:(NSDictionary *)dict
{
    if(self= [super init])
    {
        [self setValuesForKeysWithDictionary:dict];
        
        NSMutableArray *mfriends =[NSMutableArray array];
        
        for(NSDictionary *dic  in  self.friends)
        {
            JOFriend *friend =[JOFriend friendWithDict:dic];
            [mfriends addObject:friend];
        }
        self.friends =mfriends;
    }
    return self;
}


+(instancetype)groupWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

@end
